﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Web;

namespace ZLDC.Common.BaseUser
{
    public class CookieHelper
    {
        public static void AddUser(string m_sUserID, string m_sUserName, string m_sFgs)
        {
            HttpContext.Current.Session["fgs"] = DESEncryptor.Encript(m_sFgs);
            HttpContext.Current.Session["key"] = m_sUserID;
            HttpContext.Current.Session["name"] = DESEncryptor.Encript(m_sUserName);
            HttpContext.Current.Session["md5"] = DESEncryptor.GetMd5(m_sFgs + m_sUserID + m_sUserName);
        }

        public static void DeleteUser()
        {

            HttpContext.Current.Session.Clear();
        }
    }
}
